package com.youlin.dto;

public enum Status {
    SUCCESS ("请求成功", 1000),
    ERROR ("请求失败", 1001),
    PARAMETERERROR ("请求参数错误", 1002),

    LOGINFAILED ("账号或密码错误", 1003),
    USERDISABLE ("当前登录账户已禁用",1004),
    PERMISSIONDENIED ("权限不足", 1005),
    UNLOGIN ("未登录", 1006),
    UPDPWDFIRST ("请先修改密码", 1007),
    NAMEDUPLICATE ("登录账号重复", 1008),
    NICKDUPLICATE ("账号使用者姓名重复", 1009),
    UNDONEWORK ("当前账号下有未完成的工作", 1010),
    FHNAMEDUPLICATE ("告别厅名称重复", 1011),
    NEWPWDERROR ("密码必须为8-20位数字和字母组合", 1012),
    OLDPWDERROR ("原密码错误", 1013),
    USETIMECONFLICT ("告别厅使用时间冲突", 1014),
    DDATEERROR ("逝者生日或忌日日期选择错误", 1015),
    USETIMEERROR ("告别厅使用时间选择错误", 1016),
    NEEDTAKERLOGIN ("需要承办人登录后查看", 1017),
    CODEINVALID ("登录验证码已失效", 1018),
    CODEERROR ("登录验证码错误", 1019),
    FH_AM_DEL_ERROR ("不能删除举行过告别会的告别厅", 1020),
    ONEISFAMILY ("请选择一张照片设置为家庭照", 1021),
    ONLYDELCREATE ("只能删除新建状态的告别会", 1022),
    SENDCODEERROR ("发送验证码请求频繁", 1023),
    UNITCODEERROR ("登录单位编号错误",1024),
    ALLDUPLICATE ("逝者姓名+承办人姓名+承办人手机号完全重复",1025),
    AMDONE ("签到已结束，感谢您的参与",1026),
    RELOGIN ("请重新登录(密码已重置或账号已在其它终端登录)",1027),
    RELATIONERROR ("逝者与承办人关系选择错误",1028),
    DELFPERROR ("不能删除家庭照",1029),
    UPDAMSTATUSERROR ("修改告别会状态只能逐级递增",1030),
    AMOPERATEERROR ("告别会预约信息未完善不能确定预约",1031),
    AMUNDONE ("告别会未结束不能仪式完成",1032),
    HASUNREVIEWED ("有未审核的内容不能审核通过",1033),
    PHOTOSIZEERROR ("照片尺寸错误(520*700/625*415/530*620)",1034),
    CNDUPLICATE ("风俗信息标题重复",1035),

    ABCDEFG ("XXX-XXX", 0000);

    private String message;
    private int value;

    Status (String message, int value) {
        this.message = message;
        this.value = value;
    }

    public String getMessage() {
        return message;
    }

    public Status setMessage(String message) {
        this.message = message;
        return this;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return this.message;
    }

}
